* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fafafa;
  padding: 4rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
}

.header {
  text-align: center;
  margin-bottom: 4rem;
}

.header h1 {
  font-weight: 200;
  color: hsl(234, 12%, 34%);
  margin-bottom: 1rem;
}

.header p:first-of-type {
  font-weight: 600;
  color: hsl(234, 12%, 34%);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.header p:last-of-type {
  color: hsl(229, 6%, 66%);
  max-width: 500px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-top: 4px solid;
  height: 110%;
  transform: translate(0, 0);
  transition: transform 0.3s;
  position: relative;
}

.card:nth-child(1) {
  border-top-color: hsl(180, 62%, 55%);
  grid-column: 1;
  grid-row: 2;


}

.card:nth-child(2) {
  border-top-color: hsl(0, 78%, 62%);
  grid-column: 2;
  grid-row: 1;
  transform: translate(0, 50%);
}

.card:nth-child(3) {
  border-top-color: hsl(34, 97%, 64%);
  grid-column: 2  ;
  grid-row: 3;
  transform: translate(0, -50%);
}

.card:nth-child(4) {
  border-top-color: hsl(212, 86%, 64%);
  grid-column: 3;
  grid-row: 2;
}

.card h2 {
  color: hsl(234, 12%, 34%);
  margin-bottom: 1rem;
}

.card p {
  color: hsl(229, 6%, 66%);
  font-size: 0.9rem;
}
.card img {
  float: right;
}

@media (max-width: 375px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
   
  }
  
  .card {
    grid-column: 1 !important;
    grid-row: auto !important;
    transform: none !important;
  }
}
